﻿@model store.Areas.Admin.Models.CreateModulesProductModel

@{
    ViewBag.Title = "Tạo Modules Sản phẩm";
}
<div id="onload">
    <div id="content">
        <div class="contentTop">
            @Html.Partial("_ContentTopPartial")
        </div>

        <!-- Breadcrumbs line -->
        <div class="breadLine">
            <div class="bc">
                <ul id="breadcrumbs" class="breadcrumbs">
                    <li><a href="@Url.Action("Index", "Index")">Trang chủ</a></li>
                    <li><a href="@Url.Action("Index")">Quản lý modules</a>
                    </li>
                    <li class="current"><a href="@Url.Action("CreateModulesProduct", "Modules")" title="">Thêm mới modules sản phẩm</a></li>
                </ul>
            </div>
        </div>

        <!-- Main content -->
        <div class="wrapper">

            <div class="fluid">
                @using (Html.BeginForm())
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)
                    <fieldset>
                        <div class="widget">
                            <div class="whead">
                                <h6>Thêm modules sản phẩm</h6>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <div class="grid3">
                                    <label>Tên modules:<span class="req">*</span></label>
                                </div>
                                <div class="grid9">
                                    @Html.TextBoxFor(model => model.Title, new { @style = "width: 50%" })
                                    @Html.ValidationMessageFor(model => model.Title)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <div class="grid3">
                                    <label>Danh mục sản phẩm muốn hiển thị:<span class="req">*</span></label>
                                </div>
                                <div class="grid9">
                                    @Html.TextBoxFor(model => model.CaregoryId, new { @style = "width: 50%" })
                                    @Html.ValidationMessageFor(model => model.CaregoryId)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <div class="grid3">
                                    <label>Số sản phẩm muốn hiển thị:<span class="req">*</span></label>
                                </div>
                                <div class="grid9">
                                    @Html.TextBoxFor(model => model.DisplayProduct, new { @style = "width: 20%" })
                                    @Html.ValidationMessageFor(model => model.DisplayProduct)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <div class="grid3">
                                    <label>Số sắp xếp giữa các modules cùng loại:<span class="req">*</span></label>
                                </div>
                                <div class="grid9">
                                    @Html.TextBoxFor(model => model.SortNummber, new { @style = "width: 20%" })
                                    @Html.ValidationMessageFor(model => model.SortNummber)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <div class="grid3">
                                    <label>Vị trí hiển thị :</label>
                                </div>
                                <div class="grid9">
                                    @Html.DropDownListFor(model => model.Postion, (SelectList)ViewBag.selectListPostion)
                                    @Html.ValidationMessageFor(model => model.Postion)
                                </div>
                                <div class="clear"></div>
                            </div>

                            <div class="formRow">
                                <div class="grid3">
                                    <label>Hiển thị:</label>
                                </div>
                                <div class="grid9 check">
                                    @Html.CheckBoxFor(model => model.Active)
                                    @Html.ValidationMessageFor(model => model.Active)
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="formRow">
                                <table class="fr">
                                    <tr>
                                        <td>
                                            <input type="submit" name="OptionSubmit" value="Lưu" class="buttonM bBlue formSubmit" /></td>
                                        <td>
                                            <input type="submit" name="OptionSubmit" value="Lưu và Thêm mới" class="buttonM bBlue formSubmit" /></td>
                                        <td>
                                            <input type="reset" value="Làm lại" class="buttonM bDefault formSubmit" /></td>
                                        <td>
                                            <input type="button" onclick="javascript: history.go(-1);" value="Quay lại" class="buttonM bDefault formSubmit" /></td>
                                    </tr>
                                </table>
                                <div class="clear"></div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </fieldset>
                }
            </div>
        </div>
    </div>
</div>
@section scripts
{
    @Scripts.Render("~/bundles/jquerytable")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/form")
    @Scripts.Render("~/bundles/ui")
    @Scripts.Render("~/Content/Admin/js/files/bootstrap.js")
    @Scripts.Render("~/Content/Admin/js/files/functions.js")
}
